<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录</title>
    <link rel="stylesheet"
          href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
    <link rel="stylesheet" href="../../static/css/common.css" th:href="@{../css/common.css}">
    <script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
    <script src="../../static/js/semantic.min.js" th:src="@{../js/semantic.min.js}"></script>
    <script src="../../static/js/login-verify.js" th:src="@{../js/login-verify.js}"></script>
</head>
<body>
<!--中间内容-->
<div class="center-padding login-margin">
    <div class="ui container">
        <h2 class="ui header teal center aligned">管理平台登录</h2>
        <div class="column">
            <form action="#" method="post" class="ui form" th:action="@{/admin/login}">
                <div class="ui segment">
                    <div class="required field">
                        <div class="ui left icon input">
                            <input type="text" name="user" maxlength="16" placeholder="管理员账号">
                            <i class="user icon"></i>
                        </div>
                    </div>

                    <div class="required field">
                        <div class="ui left icon input">
                            <input type="password" name="pwd" maxlength="20" placeholder="管理员密码">
                            <i class="low vision icon"></i>
                        </div>
                    </div>

                    <button id="login-btn" class="ui teal button fluid">
                        登录
                    </button>
                </div>
                <div class="ui error mini message"></div>
                <div class="ui mini negative  message" th:unless="${#strings.isEmpty(response)}"
                     th:text="${response}">用户名密码错误
                </div>

            </form>
        </div>
    </div>
</div>

</body>
</html>